package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void saveWithFlavors(DishDTO dishDTO);

    PageResult pageDish(DishPageQueryDTO dishPageQueryDTO);

    void deleteDish(String[] split);

    DishVO getDishById(Long id);

    void updateDish(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    List<Dish> getDishsByCategoryId(Long categoryId);

    List<DishVO> listWithFlavor(Dish dish);
}
